package com.yibo.support.config;


import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;


/**
 * @author zhanglei
 */
@Configuration
public class UtilConfig {


    /**
     * jackson  序列化工具
     * @return  ObjectMapper
     */
    @Bean
    public ObjectMapper objectMapper(){
        return new ObjectMapper();
    }

    @Bean
    public RestTemplate  restTemplate(){
        return new RestTemplate();
    }

}
